# -*- coding: utf-8 -*-
from estimate import estimateTime
from googlemaps1 import GoogleMaps
api_key = 'ABQIAAAAevysxt9O5lBUCrSalm80MxQx8gmx0K-_Fjj4Tf8bNXH3BBSxZRRmI_CuZM2zQyuXEpG_uxt-aqPr-A'
gmaps = GoogleMaps(api_key)
# address = 'Constitution Ave NW & 10th St NW, Washington, DC'
# lat, lng = gmaps.address_to_latlng(address)
# print lat, lng
startAddress = '电院'
destination = '陈瑞球'
transport = 'h' # tranport: h避免高速公路, t避免收费路段, r采用公共交通, w步行方式, b骑行方式
#directions = gmaps.directions(startAdress, destination, transport)
print estimateTime(startAddress,destination,transport,True)